Class BluetoothDeviceImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.BluetoothDeviceImpl
All Implemented Interfaces:
IPCData, BluetoothDevice

public class BluetoothDeviceImpl extends IPCDataImpl implements BluetoothDevice
  • Field Details

    • deviceName

      protected String deviceName
    • macAddress

      protected MACAddress macAddress
    • isPaired

      protected boolean isPaired
    • isConnected

      protected boolean isConnected
    • tetherMode

      protected TetherMode tetherMode
  • Constructor Details

    • BluetoothDeviceImpl

      public BluetoothDeviceImpl()
  • Method Details

    • getDeviceName

      public String getDeviceName()
      Specified by:
      getDeviceName in interface BluetoothDevice
      Returns:
      String Returns a String
    • setDeviceName

      public void setDeviceName(String deviceName)
      Specified by:
      setDeviceName in interface BluetoothDevice
      Parameters:
      deviceName - Takes in a parameter of deviceName
    • getMacAddress

      public MACAddress getMacAddress()
      Specified by:
      getMacAddress in interface BluetoothDevice
      Returns:
      MACAddress Returns a MACAddress
    • setMacAddress

      public void setMacAddress(MACAddress macAddress)
      Specified by:
      setMacAddress in interface BluetoothDevice
      Parameters:
      macAddress - Takes in a parameter of macAddress
    • getIsPaired

      public boolean getIsPaired()
      Specified by:
      getIsPaired in interface BluetoothDevice
      Returns:
      boolean Returns a boolean
    • setIsPaired

      public void setIsPaired(boolean isPaired)
      Specified by:
      setIsPaired in interface BluetoothDevice
      Parameters:
      isPaired - Takes in a parameter of isPaired
    • getIsConnected

      public boolean getIsConnected()
      Specified by:
      getIsConnected in interface BluetoothDevice
      Returns:
      boolean Returns a boolean
    • setIsConnected

      public void setIsConnected(boolean isConnected)
      Specified by:
      setIsConnected in interface BluetoothDevice
      Parameters:
      isConnected - Takes in a parameter of isConnected
    • getTetherMode

      public TetherMode getTetherMode()
      Specified by:
      getTetherMode in interface BluetoothDevice
      Returns:
      TetherMode Returns a TetherMode
    • setTetherMode

      public void setTetherMode(TetherMode tetherMode)
      Specified by:
      setTetherMode in interface BluetoothDevice
      Parameters:
      tetherMode - Takes in a parameter of tetherMode
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Specified by:
      read in class IPCDataImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object